const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userinfo.username, // 建立用户名称的映射
  userId: state => state.user.userinfo.userId, // 建立用户id的映射
  userphoto: state => state.user.userinfo.staffPhoto // 建立用户头像的映射
  // state代表根级的store实例对象
  // getters上 开发子模块的属性给别人看 给别人用
}
export default getters
